<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>
<meta charset="utf-8" />
<script type="text/javascript" src="http://int.dpool.sina.com.cn/iplookup/iplookup.php? format=js"></script>
<script type="text/javascript" src="js/lib/jquery-1.11.1.min.js"></script>
<script type="text/javascript">
// 地理位置
var myprovince = remote_ip_info['province'];
var mycity = remote_ip_info['city']
var mydistrict = remote_ip_info['country'];
alert(mydistrict)


// IP地址
jQuery(function($){
    var url = 'http://chaxun.1616.net/s.php?type=ip&output=json&callback=?&_='+Math.random();  
    $.getJSON(url, function(data){
        alert(data.Ip);  
    });
});
</script> 
<p>您所在的城市是：<script>document.write(myprovince+' '+mycity);</script></p>
</body>
</html>